<template>
  <div class="app">
    <div>Home</div>
    <!-- <router /> -->
    <div>获取{{$store.getters.fromatInfo}}</div>
    <button @click="handleClick">点击</button>
  </div>
</template>
<script>
import {
  useStore
} from 'vuex'
export default {
  name: 'App',
  setup () {
    const store = useStore()
    console.log(store.state.info)

    const handleClick = () => {
      store.dispatch('updateInfo', 'hi')
    }

    return {
      handleClick
    }
  }
}

</script>
